package com.mbc.rmt.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.mbc.rmt.data.COADataList;
import com.mbc.rmt.entities.COA;
import com.mbc.rmt.entities.COACurrency;
import com.mbc.rmt.entities.COARpt;

public interface COADAO {
	public void create(COA entity)throws SQLException;

	public void update(COA entity)throws SQLException;

	public void delete(long key) throws SQLException;

	public COA find(long key) throws SQLException;

	public COA findCOAByCode(String code,long branchId) throws SQLException;

	public List<COA> findAll() throws SQLException;

	public COADataList findCOAs(COA cri) throws SQLException;
	
	public ArrayList<COACurrency> getInfoList(long coakey)
			throws SQLException;
	
	public COADataList getCOAList(COARpt info)
			throws SQLException;

	ResultSet prepareCOAReport(COARpt info)
			throws SQLException;
	
	public COA getInfo(COA info) throws SQLException;

}
